package com.ruoyi.dataMain.service;

import com.ruoyi.dataMain.domain.DataConsumption;
import com.ruoyi.dataMain.domain.vo.DataConsumptionVo;
import com.ruoyi.dataMain.domain.bo.DataConsumptionBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 消耗总表Service接口
 *
 * @author linziheng
 * @date 2024-01-03
 */
public interface IDataConsumptionService {

    /**
     * 查询消耗总表
     */
    DataConsumptionVo queryById(Long id);

    /**
     * 查询消耗总表列表
     */
    TableDataInfo<DataConsumptionVo> queryPageList(DataConsumptionBo bo, PageQuery pageQuery);

    /**
     * 查询消耗总表列表
     */
    List<DataConsumptionVo> queryList(DataConsumptionBo bo);

    /**
     * 新增消耗总表
     */
    Boolean insertByBo(DataConsumptionBo bo);

    /**
     * 修改消耗总表
     */
    Boolean updateByBo(DataConsumptionBo bo);

    /**
     * 校验并批量删除消耗总表信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<DataConsumptionVo> export(DataConsumptionBo bo);
}
